home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 4 / BBS in a Box - Macintosh - Volume IV (January 1992) (BBS in a Box).iso / Files / Prog / M / LSC213.cpt / ColorToolbox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1987-09-26  |  2.1 KB  |  122 lines  |  [TEXT/KAHL]

  1.  
  2. /*
  3.  *  ColorToolbox.h
  4.  *
  5.  *  Copyright (c) 1986, 1987 THINK Technologies, Inc.
  6.  *  These interfaces are based on information copyrighted
  7.  *  by Apple Computer, Inc., 1985, 1986, 1987.
  8.  *
  9.  */
  10.  
  11. #ifndef    _ColorToolbox_
  12. #define _ColorToolbox_
  13.  
  14. #ifndef _Color_
  15. #include "Color.h"
  16. #endif
  17.  
  18. #ifndef _ControlMgr_
  19. #include "ControlMgr.h"
  20. #endif
  21.  
  22.  
  23. /* ---------- Control Manager ---------- */
  24.  
  25.  
  26.     /* Constants for the colors of control parts */
  27.  
  28. enum {
  29.     cFrameColor,
  30.     cBodyColor,
  31.     cTextColor,
  32.     cThumbColor
  33. };
  34.  
  35.     
  36. typedef struct CtlCTab{
  37.     long            ccSeed;
  38.     short            ccRider;
  39.     short            ctSize;
  40.     ColorSpec        ctTable[4];
  41. } CtlCTab, *CCTabPtr, **CCTabHandle;
  42.                           
  43.  
  44. typedef struct AuxCtlRec{
  45.     Handle            acNext;
  46.     ControlHandle    acOwner;
  47.     CCTabHandle        acCTable;
  48.     short            acFlags;
  49.     long            acReserved;
  50.     long            acRefCon;
  51. } AuxCtlRec, *AuxCtlPtr, **AuxCtlHndl;
  52.  
  53.  
  54. /* ---------- Menu Manager ---------- */
  55.  
  56.  
  57. #define mctAllItems        -98
  58. #define mctLastIDIndic    -99
  59.  
  60.  
  61. typedef struct MCEntry{
  62.     short               mctID;
  63.     short               mctItem;
  64.     RGBColor           mctRGB1;
  65.     RGBColor        mctRGB2;
  66.     RGBColor        mctRGB3;
  67.     RGBColor        mctRGB4;
  68.     short            mctReserved;
  69. } MCEntry, *MCEntryPtr;
  70.  
  71. typedef MCEntry MCTable[1], *MCTablePtr, **MCTableHandle;
  72.  
  73.  
  74. /* ---------- Window Manager ---------- */
  75.  
  76.  
  77. /*  color table entries  */
  78. enum {
  79.     wContentColor,
  80.     wFrameColor,
  81.     wTextColor,
  82.     wHiliteColor,
  83.     wTitleBarColor
  84. };
  85.  
  86. typedef struct AuxWinRec{
  87.     struct AuxWinRec **awNext;
  88.     WindowPtr        awOwner;
  89.     CTabHandle        awCTable;
  90.     Handle            dialogCTable;
  91.     long            awFlags;
  92.     long            awResrv;
  93.     long            awRefCon;
  94. } AuxWinRec, *AuxWinPtr, **AuxWinHndl;
  95.     
  96. typedef struct WinCTab{
  97.     long            wCSeed;
  98.     short            wCReserved;
  99.     short            ctSize;
  100.     ColorSpec        ctTable[5];
  101. } WinCTab, *WCTabPtr, **WCTabHandle;
  102.  
  103.  
  104. /* ---------- */
  105.  
  106.  
  107. /*  functions returning non-integral values  */
  108. pascal WindowPtr NewCDialog();        /*  DialogPtr  */
  109. pascal MCTableHandle GetMCInfo();
  110. pascal MCEntryPtr GetMCEntry();
  111. pascal WindowPtr NewCWindow();
  112. pascal WindowPtr GetNewCWindow();
  113. pascal RgnHandle GetGrayRgn();
  114.  
  115.  
  116. /*  low-memory globals  */
  117. extern AuxWinHndl AuxWinHead : 0xCD0;
  118. extern AuxCtlHndl AuxCtlHead : 0xCD4;
  119. extern MCTableHandle MenuCInfo : 0xD50;
  120.  
  121.  
  122. #endif _ColorToolbox_